package keeto.com.vn.classified.task;

import java.util.Set;

import keeto.com.vn.classified.config.IConstant;
import keeto.com.vn.classified.core.ClassifiedCore;
import keeto.com.vn.classified.core.ClassifiedListener;
import keeto.com.vn.classified.core.IClassifiedCore;
import keeto.com.vn.classified.core.MockRunnable;
import keeto.com.vn.classified.network.IProtocol;


public abstract class AbstractTask implements MockRunnable, IConstant {

	protected Set<ClassifiedListener> listeners = null;
	protected ClassifiedListener listener = null;
	protected String authKey;
	protected IClassifiedCore core;
	protected IProtocol json;

	public AbstractTask(ClassifiedListener listener, ClassifiedCore core) {
		this.listeners = core.copyAndReconstructListeners(listener);
		this.listener = listener;
		this.core = core;
		this.authKey = core.getAuthKey();
		this.json = core.getProtocol();
	}
}
